Skip to content

Update EventEmitter.h#1

Open
igormarkoff wants to merge 1 commit intomasterfrom
typeid_patch
Open

Update EventEmitter.h#1
igormarkoff wants to merge 1 commit intomasterfrom
typeid_patch

Conversation

@igormarkoff
Copy link
Copy Markdown
Owner

Using from different projects in the same xcode workspace causes typeid returns different type_info for the same type (text name of the type is the same but its type_index is different). Since name is the same, using std::string as key of listeners map fixes the issue.
One more change - I'm not sure whether this is a typo or not, but you use type (not Type) on line 52, I fixed this as well. If this is incorrect please revert.

Using from different projects in the same xcode workspace causes typeid returns different type_info for the same type (text name of the type is the same but its type_index is different). Since name is the same, using std::string as key of listeners map fixes the issue.
One more change - I'm not sure whether this is a typo or not, but you use type (not Type) on line 52, I fixed this as well. If this is incorrect please revert.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant